<template>
  <div class="home-container">
    <Header/>
    <div class="main-container">
      <SiderBar/>
      <div class="content-container">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script setup>
  import Header from '../views/HeaderView.vue'  //组件引入
  import SiderBar from '../views/SiderBarView.vue'  //组件引入
</script>

<style scoped>
.home-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.main-container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.content-container {
  margin-left: 250px;
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}
</style>
